home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
YICN23.ZIP
/
INCLUDE
/
YAKLIB.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-10
|
783b
|
39 lines
#ifndef YAKLIB.H
#define YAKLIB.H
#include "stddefs.h"
#include <fstream.h>
class directoryEntry
{
public:
char filename[15];
unsigned long index;
unsigned long size;
directoryEntry() {filename[0] = '\0'; index = 0; size = 0;};
};
class yakLib
{
fstream myDataFile;
int numberOfEntries;
long directoryIndex;
char libFilename[15];
public:
void open(char * filename);
yakLib(char * filename);
void getDirectoryIndex(void);
directoryEntry getIndex(char * filename);
void addFile(char *filename);
unsigned long fileSize(char * filename);
void extractFile(char *filename);
int deleteFile(char *filename);
void listFiles(void);
byte * loadToMem(char *filename);
};
byte * loadDosToMem(char *filename);
#endif